import 'package:flutter/material.dart';
import 'package:star_author/config/app.dart';

class Adapt {
  static get statusBarHeight {
    BuildContext? context = App.materialKey.currentContext as BuildContext;
    return MediaQuery.of(context).padding.top;
  }

  static get bottomHeight {
    BuildContext? context = App.materialKey.currentContext as BuildContext;
    return MediaQuery.of(context).padding.bottom;
  }
}
